<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Garena</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,td,th {
	color: #0000FF;
}
body {
	background-color: #999999;
}
</style>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F7E6D4">
  <tr>
    <td valign="top"><table width="789" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="387" height="86" align="right" valign="top" bgcolor="#66CCCC" style="background-image:url(garena/images/index_02.gif); background-repeat:repeat-x; background-position:top;"><img src="../../../garena/images/Image2.jpg" width="304" height="80" /></td>
        <td width="402" bgcolor="#66CCCC" style="background-image:url(garena/images/index_02.gif); background-repeat:repeat-x; background-position:top;">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top" bgcolor="#66CCCC"><table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="419" rowspan="3" valign="top"> <img src="../../../garena/images/Image1.jpg" width="419" height="250" /></td>
            <td width="40%" height="44" class="body">Last Name:</td>
            <td width="336" align="center" valign="top" bgcolor="#999999"><input name="textfield3" type="text" style="width:250px; height:45px;" size="12" /></td>
          </tr>
          <tr>
            <td width="34%" height="43" class="body">First Name:</td>
            <td align="center" valign="top" bgcolor="#999999"><input name="textfield2" type="text" style="width:250px; height:45px;" size="35" /></td>
          </tr>
          <tr>
            <td colspan="2" align="center" valign="top" bgcolor="#999999">
              <div style="padding-top:25px; padding-bottom:12px;"><img src="../../../garena/images/Image4.jpg" width="253" height="29" /></div>
              <div style="padding-left:5px;"><form id="form1" name="form1" method="post" action="" style="margin:auto;">
                <table width="90%" border="0" align="center" cellpadding="4" cellspacing="0">
                  <tr>
                    <td width="50%" align="left" valign="top">Date</td>
                    <td width="50%" align="left" valign="top" class="body2">&nbsp;</td>
                    </tr>
                  <tr>
                    <td align="left" valign="top"><label>
                      <select name="select" style="width:60%;">
                        <option>January</option>
                        <option>February</option>
                        <option>march</option>
                        <option>April</option>
                        <option>May</option>
                        <option>June</option>
                        <option>July</option>
                        <option>August</option>
                        <option>September</option>
                        <option>october</option>
                        <option>November</option>
                        <option>December</option>
                        </select>
                      <select name="select2" style="width:30%;">
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                        <option>10</option>
                        <option>11</option>
                        <option>12</option>
                        <option>13</option>
                        <option>14</option>
                        <option>15</option>
                        <option>16</option>
                        <option>17</option>
                        <option>18</option>
                        <option>19</option>
                        <option>20</option>
                        <option>21</option>
                        <option>22</option>
                        <option>23</option>
                        <option>24</option>
                        <option>25</option>
                        <option>26</option>
                        <option>27</option>
                        <option>28</option>
                        <option>29</option>
                        <option>30</option>
                        <option>31</option>
                        </select>
                      </label></td>
                    <td align="left" valign="top"><select name="select3" style="width:60%;">
                      <option>January</option>
                      <option>February</option>
                      <option>march</option>
                      <option>April</option>
                      <option>May</option>
                      <option>June</option>
                      <option>July</option>
                      <option>August</option>
                      <option>September</option>
                      <option>october</option>
                      <option>November</option>
                      <option>December</option>
                      </select>
                      <select name="select4" style="width:30%;">
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                        <option>10</option>
                        <option>11</option>
                        <option>12</option>
                        <option>13</option>
                        <option>14</option>
                        <option>15</option>
                        <option>16</option>
                        <option>17</option>
                        <option>18</option>
                        <option>19</option>
                        <option>20</option>
                        <option>21</option>
                        <option>22</option>
                        <option>23</option>
                        <option>24</option>
                        <option>25</option>
                        <option>26</option>
                        <option>27</option>
                        <option>28</option>
                        <option>29</option>
                        <option>30</option>
                        <option>31</option>
                        </select></td>
                    </tr>
                  <tr>
                    <td colspan="2" align="left" valign="top" style="padding-bottom:10px; padding-top:10px;">
                      TIME IN 
                      <select name="select2" style="width:31%;">
                        <option>7 AM</option>
                        <option>8 AM</option>
                        <option>9 AM</option>
                        <option>10 AM</option>
                        <option>11 AM</option>
                        <option>12 PM</option>
                        <option>1 PM</option>
                        <option>2 PM</option>
                        <option>3 PM</option>
                        <option>4 PM</option>
                        <option>5 PM</option>
                        </select>
                      &nbsp;TIME OUT  
                      <select name="select5" style="width:31%;">
                        <option>7 AM</option>
                        <option>8 AM</option>
                        <option>9 AM</option>
                        <option>10 AM</option>
                        <option>11 AM</option>
                        <option>12 PM</option>
                        <option>1 PM</option>
                        <option>2 PM</option>
                        <option>3 PM</option>
                        <option>4 PM</option>
                        <option>5 PM</option>
                        <option>6 PM</option>
                        </select></td>
                    </tr>
                  <tr>
                    <td align="left" valign="top"><label>
                      <input type="text" name="textfield" />
                      </label></td>
                    <td align="left" valign="top">
						<input type="submit" value="Submit"/>
					</td>
                    </tr>
                  </table>
              </form></div>			</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" valign="top" bgcolor="#66CCCC"><table width="730" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top:#FFFFFF 2px solid;">
          <tr>
            <td width="11" height="34" align="left" valign="top" bgcolor="#66CCCC">&nbsp;</td>
            <td width="708" bgcolor="#66CCCC"><pre class="menu"><a href="index.html">Home Page</a>                  <a href="content.html">About Us</a>                 <a href="content.html"></a> <a href="contact.html">Contacts</a></pre></td>
            <td width="11" align="right" valign="top" bgcolor="#66CCCC">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#33CCCC" style="padding-top:15px; padding-bottom:15px;">
	<table width="94%" height="14" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="67%" valign="top" bgcolor="#FFFFFF">
			<div style="padding-bottom:12px; padding-top:10px;">
            	<?php /* draws a calendar */
function draw_calendar($month,$year){

	/* draw table */
	$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';

	/* table headings */
	$headings = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	$calendar.= '<tr class="calendar-row"><td class="calendar-day-head">'.implode('</td><td class="calendar-day-head">',$headings).'</td></tr>';

	/* days and weeks vars now ... */
	$running_day = date('w',mktime(0,0,0,$month,1,$year));
	$days_in_month = date('t',mktime(0,0,0,$month,1,$year));
	$days_in_this_week = 1;
	$day_counter = 0;
	$dates_array = array();

	/* row for week one */
	$calendar.= '<tr class="calendar-row">';

	/* print "blank" days until the first of the current week */
	for($x = 0; $x < $running_day; $x++):
		$calendar.= '<td class="calendar-day-np"> </td>';
		$days_in_this_week++;
	endfor;

	/* keep going with days.... */
	for($list_day = 1; $list_day <= $days_in_month; $list_day++):
		$calendar.= '<td class="calendar-day">';
			/* add in the day number */
			$calendar.= '<div class="day-number">'.$list_day.'</div>';

			/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !!  IF MATCHES FOUND, PRINT THEM !! **/
			$calendar.= str_repeat('<p> </p>',2);
			
		$calendar.= '</td>';
		if($running_day == 6):
			$calendar.= '</tr>';
			if(($day_counter+1) != $days_in_month):
				$calendar.= '<tr class="calendar-row">';
			endif;
			$running_day = -1;
			$days_in_this_week = 0;
		endif;
		$days_in_this_week++; $running_day++; $day_counter++;
	endfor;

	/* finish the rest of the days in the week */
	if($days_in_this_week < 8):
		for($x = 1; $x <= (8 - $days_in_this_week); $x++):
			$calendar.= '<td class="calendar-day-np"></td>';
		endfor;
	endif;

	/* final row */
	$calendar.= '</tr>';

	/* end the table */
	$calendar.= '</table>';
	
	/* all done, return result */
	return $calendar;
}

/* sample usages */

echo '<h2>march 2014</h2>';
echo draw_calendar(7,2009); ?>
            </div>
        </td>
        <td width="33%" valign="top" bgcolor="#FFFFFF" style="padding-left:15px;">
		<div></div>
		<div class="body1" style="padding:8px;"><strong>02th march</strong> 2014<br />
		  <br />
po na edit<br />
		</div>
		<div class="body1" style="padding:8px;"><strong>04th march</strong> 2014<br />
		   ma i edit ulit<br />
		</div>
		  <div class="body1" style="padding:8px;">
		    <p><strong>05th march 2014</strong></p>
		    <p><strong>nag iisip pa maidag dag</strong><br />
		      <br />
		      <br />
		      </p>
		  </div>
		</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="82" bgcolor="#66CCCC" style="background-image:url(garena/images/index_61.gif); background-position:bottom; background-repeat:repeat-x;"><pre class="footer"><a href="index.html">Home Page</a>     ::     <a href="content.html">About Us</a>     ::     <a href="content.html"></a><a href="contact.html">Contacts</a><br />    Copyright &copy; 2014 Garena All Rights Reserved.</pre></td>
  </tr>
</table>
</body>
</html>